package com.example.practice.service;

import com.example.practice.entity.FeedUrl;
import com.example.practice.entity.Feekback;
import com.example.practice.entity.pageMsg;
import com.example.practice.entity.respMsg;

import java.util.List;

/**
 * (Feekback)表服务接口
 *
 * @author makejava
 * @since 2023-12-21 15:53:22
 */
public interface FeekbackService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    Feekback queryById(Integer id);



    /**
     * 新增数据
     *
     * @param feekback 实例对象
     * @return 实例对象
     */
    Feekback insert(Feekback feekback);

    /**
     * 修改数据
     *
     * @param feekback 实例对象
     * @return 实例对象
     */
    Feekback update(Feekback feekback);

    /**
     * 修改状态status
     *
     * @param feekback 实体
     * @return 实例对象
     */
    int updateStatus(Integer id);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Integer id);

    respMsg queryAllByLimit(Integer uid, pageMsg pageMsg);

    int addFeekback(Feekback feekback);

    List<Feekback> getByUid(Integer uid);

    respMsg queryAll(pageMsg pageMsg);

    respMsg searchStatus1(Integer status, pageMsg pageMsg);

    List<Feekback> getAllFeek();

    List<Feekback> getFeekback(String aname, String uname, Integer status);

    Integer saveFeedUrl(List<FeedUrl> fileUrl);

    List<FeedUrl> selectFeedFile(Integer fid, Integer uid);

    List<Feekback> findAllFeedByUid(Integer uid);
}
